home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / tsql / doc / tsql.mail / 000157_peressi@udmi5400.cineca.it _Wed Jun 9 16:58:44 1993.msg < prev    next >
Internet Message Format  |  1996-01-31  |  4KB

  1. Received: from udmi5400.cineca.it ([158.110.1.140]) by optima.CS.Arizona.EDU (5.65c/15) via SMTP
  2.     id AA21496; Wed, 9 Jun 1993 08:17:16 MST
  3. Received: by udmi5400.cineca.it (5.57/Ultrix3.0-C)
  4.     id AA20632; Wed, 9 Jun 93 16:58:44 +0100
  5. Date: Wed, 9 Jun 93 16:58:44 +0100
  6. From: peressi@udmi5400.cineca.it (Peressi Elisa)
  7. Message-Id: <9306091558.AA20632@udmi5400.cineca.it>
  8. To: tsql@cs.arizona.edu
  9. Subject: queries O1.S9
  10.  
  11. Dear TSQL group,
  12.  
  13. our contribution to the population of the benchmark with queries of
  14. different classes follows. We apologize for answering so late, but
  15. we are not so sure to have completely and properly understood the
  16. benchmark taxonomy (so you may possibly disagree with our interpretation).
  17. We are proposing five queries for class 01.S9 (Other,Element,Computed).
  18.  
  19. Comments are welcome. 
  20.  
  21. Best regards,
  22. Angelo Montanari, Elisa Peressi, Barbara Pernici
  23.  
  24. montana@udmi5400.cineca.it / montanari@uduniv.cineca.it
  25. peressi@udmi5400.cineca.it
  26. pernici@uduniv.cineca.it / pernici@ipmel@.polimi.it
  27.  
  28.  
  29.  
  30. \documentstyle[11pt]{article}
  31. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  32. % Latex template for queries
  33. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  34. \addtolength{\textwidth}{1.485in} \setlength{\oddsidemargin}{.1in}
  35. \setlength{\evensidemargin}{.1in} \addtolength{\topmargin}{-.85in}
  36. \addtolength{\textheight}{1.8in}
  37.  
  38. \long\def\comment#1{}
  39.  
  40. \long\def\query#1#2#3{\begin{verse} {\bf Query \no} {#1} \end{verse}
  41. \begin{verse} {\bf Answer:} {#2} \end{verse} \begin{verse} {\bf
  42. Category:} {#3} \end{verse}}
  43.  
  44. \newcounter{qnumber}
  45. \newcounter{rnumber}[subsection]
  46. \newcounter{gnumber}[subsubsection]
  47. \newcommand{\no}{\setcounter{qnumber}{\value{subsection}}
  48. \setcounter{rnumber}{\value{subsubsection}}\protect\refstepcounter{gnumber}
  49. Q \protect\theqnumber.\protect\thernumber.\protect\thegnumber:}
  50.  
  51. \begin{document}
  52.  
  53. \section{Explicit-attribute Output}
  54. \subsubsection{Class O1.S9 (Other, Element, Computed)}
  55.  
  56. \query{Find the names of departments that had a budget greater than \$90K
  57.  during the period when Di managed them.}
  58. {``Toy''.}
  59. {(Projected, None) / (Containment, Element, Computed) / (=, Constant)
  60.  (=, Constant) (=, Foreign)}
  61.  
  62.   \noindent {\it The employee with name Di has managed the Toy
  63. department since 1/1/1982 and during that period the budget was always
  64. greater than \$90K. The category ``(Containment, Element, Computed)''
  65. indicates that a containment based predicates is used on element-valued
  66.  arguments which are both derived from the valid-times of stored facts. 
  67. The non-temporal selection predicates test for equality between the employee
  68.  name and ``Di'', the equality between the same attribute and the foreign
  69.  key of the Dept relation and the comparison between the department budget
  70.  and the amount of \$120K.}
  71.  
  72. \query{Find Ed's salary during the periods he worked in the same
  73. department as Di's.}
  74.   {\$20K, \$30K, \$40K.}
  75.   {(Projected, None) / (Containment, Element, Computed) / (=, Constant)
  76.     (=, Single) (=, Constant)}
  77.  
  78.   \noindent {\it The second non-temporal selection predicate belonging
  79. to the class ``(=, Single)'' test the
  80. equality between the department of Ed and Di.}  
  81.  
  82. \query{Find the names of the departments which Ed worked in earning
  83. \$40K.} 
  84.   {``Toy'',``Book''.}
  85.   {(Projected, None) / (Containment, Element, Computed) / (=, Constant)
  86.     (=, Constant)}
  87.  
  88. \noindent {\it The predicates belonging to the class ``(=, Constant)''
  89. indicate the selection of the employee Ed and test the equality between
  90. his salary and the amount of \$40K.}
  91.  
  92. \query{Find Ed's name after he left the Toy department.}
  93.   {``Edward''.}
  94.   {(Projected, None) / (Ordering, Element, Computed) / (=, Constant) (=,
  95. Constant)}
  96.  
  97. \noindent {\it An ordering based predicate is used to select the name of
  98. employeee Ed with valid-time following the period he worked for the Toy
  99. department.}
  100.  
  101. \query{Find Ed's skills when he worked in the Toy department.}
  102. {``driving'',``filling'',``typing''.}
  103.   {(Projected, None) / (Containment, Element, Computed) / (=, Constant)
  104. (=, Foreign) (=, Constant)}
  105.  
  106. \noindent {\it The non-temporal predicate of the class ``(=, Constant)''
  107. indicates the selection  of the employee with name Ed; ``(=, Foreign)''
  108. indicates the selection of the skills of such employee and ``(=,
  109. Constant)'' indicates the selection of the Toy department.}
  110. \end{document}
  111.  
  112.  
  113.  
  114.